<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
    <%   
    String path = request.getContextPath();   
    String basePath = request.getScheme()+"://" +request.getServerName()+":" +request.getServerPort()+path+"/" ;
    
    %>  


<%@ page import="com.wgn.reportquery.utils.*"%>
<%@ page import="com.wgn.reportquery.service.*"%>
<%

	
%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">

<title>医联网查询</title>

<!-- Bootstrap core CSS -->
<link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="<%=basePath%>css/ie10-viewport-bug-workaround.css"
	rel="stylesheet">
<link href="<%=basePath%>css/justified-nav.css"	rel="stylesheet">

<!-- Custom styles for this template -->
<link href="<%=basePath%>css/signin.css" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">
<!--  <link href="<%=basePath%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath%>/css/sk.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../datepicker/jquery-ui.css">-->
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<link href="<%=basePath%>css/ie10-viewport-bug-workaround.css" rel="stylesheet">

<script language="javascript">
	function toVaild() {
		var cards = document.getElementById("cards").value;
		
		if (cards.indexOf('请选择')!=-1)
			{
			alert('请选择医保卡 !此医保卡需要在医联网绑定');
			return false;
			}
		else
			{
			var hop= $("input[type='radio']:checked").val();  
			if(null==hop)
			{
				alert('请选择一家医院！');
				return false;
			}else
				return true;
			}

	}
</script>

</head>

<body>
	<div class="masthead">
     
        <nav>
          <ul class="nav nav-justified">
            <li class="active"><a href="<%=basePath%>SigninServlet">首页</a></li>
         <li><a href="<%=basePath%>jsp/signin.jsp">退出</a></li>
            <li><a href="<%=basePath%>jsp/regist.jsp">注册</a></li>
            <li><a href="http://www.shdc.org.cn/familyServices/index">上海市医院报告查询和门诊预约</a></li>
            <li><a href='<%=basePath%>jsp/downrj.jsp'>下载仁济app</a></li>            
          </ul>
        </nav>
      </div>
<div class="container">
	
			<div class="well">
			<p>
		用户:${username}		
			</p>
		</div>
				<div class="row">
			<div class="col-sm-8">
		<div class="panel panel-primary">
					<div class="panel-heading">
						<h3 class="panel-title">选择医保网绑定的医保卡</h3>
					</div>
						<form onsubmit="return toVaild()" class="form-signin" action="<%=basePath%>dosomequery" method="get">
			
			<select class="form-control" name="cards" id='cards'>
				<option>--请选择--</option>
				${cards}
			</select>
			<h3>查询日期：</h3>
			<select class="form-control-wgn" name="datestart_year">
				${year}				
			</select><select class="form-control-wgn" name="datestart_month">
				${month}				
			</select><select class="form-control-wgn" name="datestart_day">
				${day}				
			</select>
			 <h3>至</h3>
			 <select class="form-control-wgn" name="dateend_year">
					${year}					
			</select>
			</select><select class="form-control-wgn" name="dateend_month">
					${month}
			</select> 
			<select class="form-control-wgn" name="dateend_day">
				${day}				
			</select>
			<table>
				${hostlist}

			</table>
			<input type='text' style='display: none' value='QUERYSK'
				name='querytype'> 			
			<button class="btn btn-lg btn-primary btn-block" type="submit">查询并导入</button>


		</form>
				
				</div>
				
			</div>
		</div>
	
		

	</div>

	
</body>

</html>